$(function(){
	$("#login").click(function(){
		var _this=this;
		var email=$("input")[0];
		var pwd=$("input")[1];
		$.post("/user/login",{"email":email.value,"pwd":pwd.value},function(data){
			if(data.status==0)
            {
                window.location.href="/";
            }
            else
            {
                alert(data.msg);
            }
		},"json");
	});
});